export default [ {
  path: '/user',
  component: () => import('@/views/layout/UserLayout.vue'),
  redirect: '/user/login',
  children: [
    {
      path: 'register',
      meta: { title: '注册' },
      component: () => import('@/views/user/RegisterPage.vue')
    },
    {
      path: 'login',
      meta: { title: '登录' },
      component: () => import('@/views/user/LoginPage.vue')
    },
    {
      path: 'forgot',
      meta: {title: '忘记密码'},
      component:() => import('@/views/user/ForgotPage.vue'),
      redirect: '/user/forgot/username',
      children: [
        {
          path: 'username',
          component: () => import('@/views/user/forgot/CheckUser.vue')
        },
        {
          path: 'email',
          component: () => import('@/views/user/forgot/CheckEmail.vue')
        },
        {
          path: 'change',
          component: () => import('@/views/user/forgot/ChangePassword.vue')
        }
      ]
    }
  ]
}]
